package java_thinking.unit_10._10_1_2;

/**
 * @Description : 练习
 * @author: cww
 * @DateTime: 2019-03-09 14:53
 */

class Outer {
    private String data;
    Outer(String data){
        this.data = data;
    }
    class Inner{
        @Override
        public String toString(){
            return data;
        }
    }
    public Inner getInner(){
        return new Inner();
    }
}

class Unit10Practice3{
    public static void main(String[] args) {
        Outer outer = new Outer("ok");
        Outer.Inner i = outer.getInner();
        System.out.println(i.toString());
    }
}